$(function () {
    document.getElementById('login-button').addEventListener('tap',function () {
        if(!checkMobile($('#phone').val())){

        }else{
            window.location.href="register2.html?phone="+$('#phone').val();
        }
    })
})